package org.dromara.system.domain.bo;

import org.dromara.system.domain.EmailConfig;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 支付邮件配置业务对象 email_config
 *
 * @author Gavino
 * @date 2025-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmailConfig.class, reverseConvertGenerate = false)
public class EmailConfigBo extends BaseEntity {

    /**
     * 配置ID
     */
    private Long configId;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 邮箱账号ID
     */
    @NotBlank(message = "邮箱账号ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String emailAccountId;

    /**
     * 收款账号ID
     */
    @NotBlank(message = "收款账号ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payAccountId;

    /**
     * 邮件模板ID
     */
    @NotNull(message = "邮件模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer templateId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人ID
     */
    private Long createId;
}
